package com.googlecode.agileplugins.cruisewatcher;

public class LatestBuildState {
    private String date;
    private boolean failure;

    public LatestBuildState(String date, boolean failure) {
        this.date = date;
        this.failure = failure;
    }

    public boolean wasAt(String lastDate) {
        return date.equals(lastDate);
    }

    public String getDate() {
        return date;
    }

    public boolean wasFailure() {
        return failure;
    }
}
